local thbattle__lingmeng_nafeng = fk.CreateSkill {

  name = "thbattle__lingmeng_nafeng$",
  attached_skill_name = "thbattle__lingmeng_nafeng_rule&",

  tags = {},

}



thbattle__lingmeng_nafeng:addEffect(fk.AfterCardsMove, {
  mute = true,
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(thbattle__lingmeng_nafeng.name) then
      for _, move in ipairs(data) do
        if move.from and move.to == player and move.toArea == Card.PlayerHand and move.proposer == move.from 
          and move.skillName == "thbattle__lingmeng_nafeng_rule&" then
          for _, info in ipairs(move.moveInfo) do
            if info.fromArea == Card.PlayerHand and Fk:getCardById(info.cardId).name == "exinwan" then
              return true
            end
          end
        end
      end
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:broadcastPlaySound("packages/thbattle/audio/skill/thbattle__lingmeng_nafeng$1")
  end,
})

return thbattle__lingmeng_nafeng
